package com.offcn.pojo;

import java.io.Serializable;

/**
 * @author offcn
 **/
public class Person implements Serializable {// new Person()
    private Integer p_id;
    private String  p_name;

    //一对一的关联关系：
    private IdCard idCard;

    public Integer getP_id() {
        return p_id;
    }

    public void setP_id(Integer p_id) {
        this.p_id = p_id;
    }

    public String getP_name() {
        return p_name;
    }

    public void setP_name(String p_name) {
        this.p_name = p_name;
    }

    public IdCard getIdCard() {
        return idCard;
    }

    public void setIdCard(IdCard idCard) {
        this.idCard = idCard;
    }

    @Override
    public String toString() {
        return "Person{" +
                "p_id=" + p_id +
                ", p_name='" + p_name + '\'' +
                ", idCard=" + idCard +
                '}';
    }
}
